package org.mybatis3.dao1;

import org.mybatis3.service1.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {
    public static void main(String[] args) {
        ApplicationContext cxt=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService= (UserService)cxt.getBean("userService");
        if (userService.login("admin","123")){
            System.out.println("登录成功！");
        }
    }
}
